<button class="btn btn-info" type="button" onclick="back()">返回</button>
<ul class="nav nav-tabs">
    <li role="presentation"><a href="javascript:;" onclick="toIn()">入库记录</a></li>
    <li role="presentation" class="active"><a href="javascript:;">出库记录</a></li>
</ul>
<table class="table" id="somainDiv">
    <thead>
    <tr>
        <th>序号</th>
        <th>出库时间</th>
        <th>相关销售单号</th>
        <th>出库经手人</th>
        <th>出库数量</th>
        <th>出库类型</th>
    </tr>
    </thead>
    <tbody id="tableBody"></tbody>
</table>
<div>
    <ul id="page">分页</ul>
</div>

<script id="outStoreRecordTemplate" type="text/html">
    {{each data value index}}
    <tr>
        <td>{{index+1}}</td>
        <td>{{value.stockTime}}</td>
        <td>{{value.orderCode}}</td>
        <td>{{value.createUser}}</td>
        <td>{{value.stockNum}}</td>
        <td>{{value.stockType}}</td>
    </tr>
    {{/each}}
</script>

<script>
    $(function () {
        showPage3({
            productCode:window.sessionStorage.getItem("storeProductCode"),
            currentPage: 1,
            pageSize: 5,
            url: '/getAllOutStockRecord',
            templateId: 'outStoreRecordTemplate',
            contentId: 'tableBody',
            params: {
                id: 1
            }
        })
    })
    function toIn() {
        show("/store/inStockRecord.html")
    }
    function back() {
        show("/store/storeSearch.html")
    }
</script>
